package com.hbnu.array.shop;

public class DemoAccount {
    //    定义一个账户类Account,至少包含卡号，姓名，性别，密码，余额，每次取现额度
    private  String cardId;
    private String username;
    private char sex;
    private String password;

    public String getCardId() {
        return cardId;
    }

    public void setCardId(String cardId) {
        this.cardId = cardId;
    }

    public String getUsername() {
        return username+(sex=='男'?"先生":"女士");
    }

    public void setUsername(String username) {
        this.username = username;
    }

    public char getSex() {
        return sex;
    }

    public void setSex(char sex) {
        this.sex = sex;
    }

    public String getPassword() {
        return password;
    }

    public void setPassword(String password) {
        this.password = password;
    }
}
